#include <iostream>
#include <string> 
using namespace std;
int main()
{
	int n;
	cin >> n;
	string s[114];
	for(int i=0;i<n;i++)
	{
		cin >> s[i];
	}
	int k;
	cin >> k;
	string a;
	cin.get();
	getline(cin,a); 
	int count=0;
	for(int i=0;i<n;i++)
	{
		if(a.find(s[i])!=string::npos)
		{
			count++;
			int pos=a.find(s[i]);
			a.replace(pos,s[i].size(),"<censored>");
		}
	}
	if(count<k)
	{
		cout << a << endl;
	}
	else if(count>=k)
	{
		cout << count << endl;
		cout << "He Xie Ni Quan Jia!" << endl;
	}
	return 0;
}
